package com.whynot.frame.ms.entities;

import com.whynot.frame.basic.mybatis.model.BaseModel;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 描    述:角色实体
 * 创建时间: 2018/07/01
 */
@TableName("tbl_sys_role")
@Data
@ApiModel(value = "角色对象")
public class SysRole extends BaseModel<SysRole> {
    @ApiModelProperty("主键")
    private Integer id;
    @ApiModelProperty("角色名")
    private String roleName;
    @ApiModelProperty("部门Id")
    private String deptId;
    @ApiModelProperty("角色key")
    private String roleKey;
    @ApiModelProperty("角色类型")
    private String roleType;
    @ApiModelProperty("状态：1启用,0停用")
    private Integer enabled;

    @Override
    protected Serializable pkVal() {
        return id;
    }
}
